//@ sourceURL=MeetInformationForm.js
MeetInformationForm = Ext.extend(Ext.Window,
{
    constructor : function(a) {
        Ext.applyIf(this, a);
        this.initUIComponents();
        MeetInformationForm.superclass.constructor.call(this, {
            layout : "fit",
            id : this.inputFormName,
            items : yearGridFormPanel,
            modal : true,
            bodyStyle : "padding:2px;",
            buttonAlign : "center",
            buttons : yearGridFormButtons,
            title : "会议资讯添加",
            iconCls : "menu-flowWait",
            width : 620,
            height : 450
        });
    },
    //初始化数据
    initUIComponents : function() {
        createyeargridform({
            operation:this,
            form:{
                saveUrl: __ctxPath+"/safemeeting/saveMeetInformation.do",
                items:[
                {
                    id : "meetInformation.id",
                    name : "meetInformation.id",
                    xtype : "hidden",
                    value : this.id == null ? "": this.id
                }, {
                    name : "meetInformation.years",
                    xtype : "hidden",
                    id : "meetInformation.years",
                    value : this.years == null ? "" : this.years
                },{
                    layout:"column",
                    bodyStyle:"padding:5px;",
                    items:[{
                        layout:"form",
                        bodyStyle:"padding:5px;",
                        defaultType:"textfield",
                        border:false,
                        columnWidth:0.5,
                        items:[{
                            fieldLabel: '所属机构', 
                            name: 'meetInformation.institution'
                            
                        }]
                },{
                       layout:"form",
                       bodyStyle:"padding:5px;",
                       defaultType:"textfield",
                       border:false,
                       columnWidth:0.5,
                       items:[{
                       fieldLabel: '会议名称', 
                       name: 'meetInformation.meetName'
                      
                       }]
                   },{
                       layout:"form",
                       border:false,
                       bodyStyle:"padding:5px;",
                       columnWidth:.5,
                       items:[{
                              //下拉选型设置
                              fieldLabel : "会议等级/类别",
                              hiddenName : "meetInformation.meetGrade",
                              xtype : "combo",
                              mode : "local",
                              editable : false,
                              width:146,
                              triggerAction : "all",
                              store : [
                                      [ "1", "政府级" ],
                                      [ "2", "集团级" ],
                                      [ "3", "行业级" ] ],
                              value : 3
                       }]
                   },{
                       layout:"form",
                       border:false,
                       bodyStyle:"padding:5px;",
                       columnWidth:.5,
                       items:[{
                           xtype:"datefield",
                           fieldLabel:'会议时间'+'<font color=red>*</font>',
                           id:"meetInformation.meetDate",
                           format:"y-m-d",
                           name:"meetInformation.meetDate",
                           width:146,
                           allowBlank:false,
                           blankText:"会议时间不能为空！"
                       }]
                   },{
                       layout:"form",
                       bodyStyle:"padding:5px;",
                       columnWidth:0.5,
                       border:false,
                       defaultType:"textfield",
                       items:[{
                       fieldLabel: '会议主题', 
                       name: 'meetInformation.meetTheme' 
                       
                       }]
                   },{
                       layout:"form",
                       bodyStyle:"padding:5px;",
                       columnWidth:1.,
                       border:false,
                       items:[{
                       xtype:"textarea", 
                       fieldLabel: '参会人员', 
                       name: 'meetInformation.participants',
                       width : 448 
                       
                       }]
                   },{
                       layout:"form",
                       bodyStyle:"padding:5px;",
                       columnWidth:1.,
                       border:false,
                       items:[{
                       xtype:"textarea", 
                       fieldLabel: '备注', 
                       name: 'meetInformation.remark',
                       width : 448 
                       
                       }]
                   }]
               }
               ]
            },
            loadData:{
                getUrl:__ctxPath +"/safemeeting/getMeetInformation.do",
                preName : "meetInformation"
            },
            isShow:this.isShow
        });
    }
});
